package stealth.novaposhta;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.Window;

public class MainMenu extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.main);
	}
	
	public void TrackClick(View view) {
		Intent i = new Intent(MainMenu.this, TrackView.class);
		startActivity(i);
	}
	
	public void OfficesClick(View view) {
		Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://novaposhta.ua/frontend/brunchoffices"));
		startActivity(browserIntent);
	}
	
	public void PriceClick(View view) {
		Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://novaposhta.ua/frontend/calculator"));
		startActivity(browserIntent);
	}
	
	public void AboutClick(View view) {
		Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://novaposhta.ua/frontend/about"));
		startActivity(browserIntent);
	}
}
